


Page({
  data: {
    currTab: 0,
    reportNavs: [{
      id: 0,
      name: '检查报告'
    }, {
      id: 1,
      name: '自查记录'
    }]
  },

  onLoad: function() {

  },

  // 切换报告类型
  onNavChange: function(e) {
    const tabIndex = parseInt(e.currentTarget.dataset.id);
    this.setData({
      currTab: tabIndex
    });
  }

});

